package com.java.base.exercise.designmode.single;


import org.apache.tomcat.util.threads.ThreadPoolExecutor;

/**
 * @Author RenPu
 * @Date 2021/6/21 9:52
 * @Version 1.0
 * @Description:设计模式---单例设计模式V6.0 采用枚举的形式，实现单例模式
 **/
public enum Single_006 {
    INSTANCE;

    Single_006() {
    }


    public String getStr(){
        return "HELLO————WORLD";
    }

    public static void main(String[] args) {
        Single_006 instance = Single_006.INSTANCE;
        instance.getStr();

    }
}
